﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="SelectSales.aspx.cs" Inherits="Auditors_SelectSales" %>

<%@ Register src="topnav.ascx" tagname="topnav" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script src="../Scripts/cookies.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script>
        function GoToCreate(id, orderid) {
            window.location.href = "EnterSales2.aspx?CompanyID=" + id + "&orderid=" + orderid;
        }
        function GoToPurchase(id, orderid) {
            window.location.href = "selectPurchase.aspx?CompanyID=" + id + "&orderid=" + orderid;
        }
        function GoTo(page, id, orderid) {
            window.location.href = page + "?CompanyID=" + id + "&orderid=" + orderid;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <uc1:topnav ID="topnav1" runat="server" />
    <h2>
        销货凭证</h2>
    <input type="button" value="新增" onclick='GoToCreate("<% =Request.QueryString["CompanyID"]%>","<% =Request.QueryString["orderid"]%>");' />
    <table>
        <tr style="vertical-align: top">
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound"
                    DataKeyNames="id" OnRowDeleting="GridView1_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="VoucherNo" HeaderText="凭证" SortExpression="VoucherNo" />
                        <asp:BoundField DataField="Date" HeaderText="日期" SortExpression="Date" DataFormatString="{0:yyyy年MM月dd日}" />
                        <asp:BoundField DataField="OrderNo" HeaderText="订单" SortExpression="OrderNo" />
                        <asp:BoundField DataField="Customer" HeaderText="客户" SortExpression="Customer" />
                        <asp:BoundField DataField="Offering" HeaderText="商品" SortExpression="Offering" />
                        <asp:BoundField DataField="Amount" HeaderText="金额" SortExpression="Amount" />
                        <asp:BoundField DataField="Currency" HeaderText="币种" SortExpression="Currency" />
                        <asp:BoundField DataField="HKMoney" HeaderText="港币" SortExpression="HKMoney" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
    <script>
        $(function () {
            var v = Cookies.getCookie("Sale");
            if (v != null) {
                Cookies.setCookie("Sale", "", -1, "/");
            }
        });
    </script>
</asp:Content>
